#!/usr/bin/env python
# -*- coding: utf-8 -*-
#coding=utf8

# 本文件由自动工具 proto.py 自动生成，请勿修改
# filename msg13000_csbuf.py
# package ptl

from ptl.base_csbuf import *


# message Req13001
class Req13001:
	def __init__(self):
		self.protoid = 13001
		pass

	def Marshal(writer):
		pass

	def Unmarshal( reader):
		pass
# message Resp13001
class Resp13001:
	def __init__(self):
		self.protoid = 13001
		self.tasks = []

	def Marshal(writer):
		counttasks = len(self.tasks)
		writer.setArray(counttasks, 1)
		for i in range(counttasks):
			writer.setMessage(0)
			self.tasks[i].Marshal(writer)
			writer.endSetMessage()

	def Unmarshal( reader):
		for i in range(reader.getArray(1)):
			msg = Task() 
			reader.getMessage(0)
			msg.Unmarshal(reader)
			reader.endGetMessage()
			self.tasks.append(msg)
# message Req13002
class Req13002:
	def __init__(self):
		self.protoid = 13002
		self.id = 0

	def Marshal(writer):
		writer.setUint32(self.id, 1)

	def Unmarshal( reader):
		self.id = reader.getUint32(1)
# message Resp13002
class Resp13002:
	def __init__(self):
		self.protoid = 13002
		self.status = 0

	def Marshal(writer):
		writer.setUint8(self.status, 1)

	def Unmarshal( reader):
		self.status = reader.getUint8(1)
# message Req13003
class Req13003:
	def __init__(self):
		self.protoid = 13003
		pass

	def Marshal(writer):
		pass

	def Unmarshal( reader):
		pass
# message Resp13003
class Resp13003:
	def __init__(self):
		self.protoid = 13003
		self.status = 0

	def Marshal(writer):
		writer.setUint8(self.status, 1)

	def Unmarshal( reader):
		self.status = reader.getUint8(1)
# message Req13004
class Req13004:
	def __init__(self):
		self.protoid = 13004
		pass

	def Marshal(writer):
		pass

	def Unmarshal( reader):
		pass
# message Resp13004
class Resp13004:
	def __init__(self):
		self.protoid = 13004
		self.status = 0

	def Marshal(writer):
		writer.setUint8(self.status, 1)

	def Unmarshal( reader):
		self.status = reader.getUint8(1)
# message Req13005
class Req13005:
	def __init__(self):
		self.protoid = 13005
		self.id = 0

	def Marshal(writer):
		writer.setUint32(self.id, 1)

	def Unmarshal( reader):
		self.id = reader.getUint32(1)
# message Resp13005
class Resp13005:
	def __init__(self):
		self.protoid = 13005
		self.status = 0

	def Marshal(writer):
		writer.setUint8(self.status, 1)

	def Unmarshal( reader):
		self.status = reader.getUint8(1)
